package org.kfive.nova.web.controllers;

import org.kfive.nova.service.JTAService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by admin on 2017-05-01.
 */
@Controller
@RequestMapping("jta")
public class JTAController {
    @Autowired
    private JTAService jtaService;

    @RequestMapping
    @ResponseBody
    public Map<String,String> save(){
        this.jtaService.save();
        Map result = new HashMap();
        result.put("code","200");
        result.put("msg","操作成功");
        System.out.println("操作成功");
        return result;
    }
}
